package cn.usian.service;

import cn.usian.common.R;
import cn.usian.entity.DTO;
import cn.usian.entity.Dish;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface DishService {
    R<Page> page(int page, int pageSize, String name);

    void del(long[] ids);

    R status(Integer status, long[] ids);

    void add(Dish dish, HttpSession session);

    Long selectByName(String name);

    R findById(long id);

    List<Dish> list(Long categoryId, String name);
}
